package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Attendance;
import cn.wolfcode.crm.domain.Mission;
import cn.wolfcode.crm.query.MissionQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Mission record);

    Mission selectByPrimaryKey(Long id);

    List<Mission> selectAll();

    int updateByPrimaryKey(Mission record);

    int queryCount(MissionQueryObject qo);

    List<Attendance> queryList(MissionQueryObject qo);

    void changeState(@Param("state") Boolean state, @Param("id") Long id);


}